package com.zp.bean.common;

import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.zp.domain.ContentType;

/**
 * define java bean for content information
 * 
 * @author chenlijun08@gmail.com
 * 
 * @version 1.0
 * 
 * @date 2014/2/26
 * 
 */
@XmlRootElement
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ContentVo extends ContentBaseVo {
	private static final long serialVersionUID = 1L;
	// path of title image
	private String titleImage;
	// content of content
	private String content;
	// who publish this content
	private String author;
	// where the content come from
	private String source;
	private ContentType contentType;
	private String status;
	private Date createTime;
	// path of media
	private String mediaPath;
	private ContentType mediaType;

	public String getTitleImage() {
		return titleImage;
	}

	public void setTitleImage(String titleImage) {
		this.titleImage = titleImage;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public ContentType getContentType() {
		return contentType;
	}

	public void setContentType(ContentType contentType) {
		this.contentType = contentType;
	}

	public ContentType getMediaType() {
		return mediaType;
	}

	public void setMediaType(ContentType mediaType) {
		this.mediaType = mediaType;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getMediaPath() {
		return mediaPath;
	}

	public void setMediaPath(String mediaPath) {
		this.mediaPath = mediaPath;
	}

}
